package com.changgou.item.feign;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ：hushengjin
 */

@FeignClient(name = "item")
@RequestMapping("/page")
public interface PageFeign {

    /**
     * 根据SpuId生成静态页
     *
     * @param id
     * @return
     */
    @RequestMapping("/createHtml/{id}")
    Result createHtml(@PathVariable Long id);

    /**
     * 根据SpuId删除静态页
     *
     * @param id
     * @return
     */
    @RequestMapping("/deleteHtml/{id}")
    Result deleteHtml(@PathVariable Long id);

}
